<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>职务信息</title>
</head>
<style type="text/css">
    table {border-collapse: collapse; font-size: 14px; width: 80%; margin: auto}
    table, th, td {border: 1px solid darkslategray;padding: 10px}
</style>
<body>

<div style="text-align: center">
    <span style="color: darkslategray; font-size: 30px">欢迎光临！</span>
    <hr/>
    <form th:action="@{/student/import}" method="post" enctype="multipart/form-data">
        <input type="file" name="importFile">
        <input type="submit" value="导入">
    </form>
    <button><a th:href="@{/course/findCourse}">课程信息</a> </button>
    <table class="list">
        <tr>
            <th>sid</th>
            <th>学生姓名</th>
            <th>学生年龄</th>
            <th>学生性别</th>
        </tr>
        <tr th:each="user : ${student}">
            <td th:text="${user.sid}"></td>
            <td th:text="${user.sname}"></td>
            <td th:text="${user.age}"></td>
            <td th:text="${user.sex}"></td>
        </tr>
    </table>
</div>
</body>
</html>